//员工管理相关api
//导入request.js
import request from '@/utils/request'
//员工分页条件查询，接收一个查询条件对象，拼接到url后
export const getEmpList = (params) => request.get('/emps', {params})

//新增员工
export const addEmp = (data) => request.post('/emps', data)
//删除员工
export const deleteEmp = (id) => request.delete(`/emps/${id}`)
//修改员工
export const updateEmp = (data) => request.put('/emps', data)
//根据id查询员工
export const getEmpById = (id) => request.get(`/emps/${id}`)


